package com.gt.admin.utils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 图表
 */
@Data
@ApiModel(value = "图表")
public class Graph {
    @ApiModelProperty(value = "图表类型")
    private String chart;

    @ApiModelProperty(value = "图表数据")
    private List<GraphData> dataList;

    public Graph(String chart, List<GraphData> graphDatas) {
        this.chart = chart;
        this.dataList = graphDatas;
    }
}
